﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Photo.Application.System.Authorize.Dto
{
    /// <summary>
    /// 修改密码input
    /// </summary>
    public class ChangePwdInput
    {
        /// <summary>
        /// 原密码
        /// </summary>
        [Required]
        [MinLength(8, ErrorMessage = "密码长度最少8位")]
        [MaxLength(30, ErrorMessage = "密码长度不超过30位")]
        public string OldPassword { get; set; }
        /// <summary>
        /// 新密码
        /// </summary>
        [Compare("OldPassword", ErrorMessage = "两次密码输入不一致")]
        public string NewPassword { get; set; }
    }
}
